#include "exitPlayMessage.h"

ExitPlayMessage::ExitPlayMessage(MtpProtocol* packet) : MtpMessage(packet)
{

}

ExitPlayMessage::ExitPlayMessage(const int64_t& movieId, const int& scene)
	: MtpMessage(new MtpProtocol(L"exitPlay")),param(movieId,scene)
{

}

void ExitPlayMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.jsonDeserialize(jsonContent);
}

void ExitPlayMessage::encodeBody()
{
	jsonContent = param.jsonStr();
	MtpMessage::encodeBody();
}

const SceneParam& ExitPlayMessage::getParam() const
{
	return param;
}
